import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
import Home from '../components/Home.vue'
import Welcome from '../components/Welcome.vue'
import TicketsList from '../components/tickets/TicketsList.vue'
import CheckedList from '../components/tickets/CheckedList.vue'
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    { path: '/', redirect: '/home' },
    { path: '/login', component: Login },
    { path: '/home',
      component: Home,
      redirect: '/welcome',
      children: [
        {
          path: '/welcome',
          component: Welcome
        },
        {
          path: '/ticketsList',
          component: TicketsList
        },
        {
          path: '/checkedList',
          component: CheckedList
        }
      ]
    }
  ]
})
